All Questions
7 questions
2votes
0answers
105views
Rust implementation of a BTree
I'm studying rust, and I decided to implement a BTree as a way of learning the language. Can anyone give me suggestions on the code? As the language has no inheritance, and we must replace it with ...
4votes
2answers
463views
Heap Sort and Binary Tree Sort Algorithms (Python)
Heap Sort A Binary Heap is a Complete Binary Tree where the items are stored in a special order such that the value in a parent node is greater or smaller than the two values in the children nodes. ...
4votes
1answer
154views
Implementing a tree parsing function
I've solved an assignment a week ago, which is my first assignment using Lisp. Tasks: Task 1: a. Given a tree as recursive lists, print the tree in breadth first order. b. Given a tree like in ...
4votes
0answers
4kviews
Compression/decompression using Huffman Coding Algorithm
I am writing a program that compresses and decompresses data using the Huffman Coding algorithm. About compression: this program will export 2 files: header file (contains characters' frequency for ...
6votes
1answer
2kviews
Python AVL Tree
I decided to implement some data structures- this time an AVL tree. I think the logic is correct. Is there a way to make it clearer and do you have any ideas about more tests to add? ...
2votes
2answers
663views
Print binary tree level by level
Please critique: ...
7votes
2answers
3kviews
Finding the weight of the heaviest path in a binary tree
I'm fairly new to Java, arriving in the "future" from C and returning to type safety from Python. I've programmed an algorithm to return the weight of the heaviest path from the root of a binary tree ...